<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title>Test Index2</title>
        <%= stylesheet_link_tag "../javascripts/ext/resources/css/ext-all.css" %>
        <%= stylesheet_link_tag "/stylesheets/blue.css" %>
        <%= stylesheet_link_tag "/stylesheets/images.css" %>
        <%= javascript_include_tag "/javascripts/application.js" %>
        <%= javascript_include_tag "/javascripts/ext/adapter/prototype/prototype.js" %>
        <%= javascript_include_tag "/javascripts/ext/adapter/prototype/scriptaculous.js" %>
        <%= javascript_include_tag "/javascripts/ext/adapter/prototype/effects.js" %>
        <%= javascript_include_tag "/javascripts/ext/adapter/prototype/ext-prototype-adapter.js" %>
        <!-- LIBS -->
        <%if session[:explorer_info]=="IE" %>
        <%= javascript_include_tag "/javascripts/ext/adapter/ext/ext-base.js" %>
        <%end %>
        <!--<%= javascript_include_tag "/javascripts/ext/adapter/ext/ext-base.js" %>-->
        <!-- ENDLIBS -->
        <%= javascript_include_tag "/javascripts/ext/ext-all-debug.js" %>
        <%= javascript_include_tag "/javascripts/ext/examples.js" %>
        <%= javascript_include_tag "/javascripts/ext/build/locale/ext-lang-zh_CN.js" %>
    </head>
    <body>
        <div id="hello">
        </div>
        <script>
            Ext.onReady(function(){
            
                new Ext.Panel({
                    renderTo: "hello",
                    title: "容器组件",
                    width: 500,
                    height: 200,
                    layout: "accordion",
					collapsible: false,
                    layoutConfig: {
						collapsible: false,
                        animate: true
                    },
                    items: [{
                        title: "子元素1",
                        html: "这是子元素1中的内容"
                    }, {
                        title: "子元素2",
                        html: "这是子元素2中的内容"
                    }, {
                        title: "子元素3",
                        html: "这是子元素3中的内容"
                    }]
                
                });
                
            });
        </script>
    </body>
</html>
